let baseUrl;
let flowableUrl = "http://localhost:2828";
let loginUrl = "http://114.116.210.204:7410";
let SSOUrl = [];
let BIUrl = "http://114.116.210.204:2424";
let previewUrl;
let iconfontVersion = ["567566_pwc3oottzol"];
let iconfontUrl = ``;
let codeUrl = `${baseUrl}/code`;
const env = process.env;
if (env.NODE_ENV == "development") {
  // flowableUrl = "http://172.16.18.187:2828"
  // baseUrl = "http://172.16.18.187:2828"
  flowableUrl = "http://natcross.nikolee.com:2829";
  baseUrl = "http://natcross.nikolee.com:2829";
  previewUrl = "http://natcross.nikolee.com:8003/onlinePreview?url=";
} else if (env.NODE_ENV == "production") {
  // flowableUrl = "https://api-oa.ctlne.com"
  // baseUrl = "https://api-oa.ctlne.com"
  // previewUrl = 'https://file-v.ctlne.com/onlinePreview?url='

  flowableUrl = "http://natcross.nikolee.com:2829";
  baseUrl = "http://natcross.nikolee.com:2829";
  previewUrl = "http://natcross.nikolee.com:8003/onlinePreview?url=";

  // flowableUrl = "http://natcross.nikolee.com:2828"
  // baseUrl = "http://natcross.nikolee.com:2828"
  // previewUrl = 'http://natcross.nikolee.com:8003/onlinePreview?url='

  // flowableUrl = "http://192.168.50.80:2830"
  // baseUrl = "http://192.168.50.80:2830"
  // previewUrl = 'http://192.168.50.80:8003/onlinePreview?url='
} else if (env.NODE_ENV == "uat") {
  // flowableUrl = "http://192.168.50.80:2830"
  // baseUrl = "http://192.168.50.80:2830"
  // previewUrl = 'http://192.168.50.80:8003/onlinePreview?url='
} else if (env.NODE_ENV == "test") {
  loginUrl = "http://119.3.78.210:7410";
  flowableUrl = "http://localhost:8282";
} else if (env.NODE_ENV == "natcross") {
  flowableUrl = "http://natcross.nikolee.com:2828";
  baseUrl = "http://natcross.nikolee.com:2828";
  previewUrl = "http://42.193.117.22:8012/onlinePreview?url=";
}
export {
  baseUrl,
  iconfontUrl,
  iconfontVersion,
  codeUrl,
  env,
  loginUrl,
  flowableUrl,
  SSOUrl,
  BIUrl,
  previewUrl,
};
